﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Findings.aspx.cs" Inherits="crm_individuals_Findings" %>

<%@ Register TagPrefix="MembersControl" Namespace="Controls" %>
<%@ Register TagPrefix="PubHead" TagName="header" src="~/pub/crm/include/header.ascx"%>
<PubHead:header ID="header" runat="server"></PubHead:header>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form2" runat="server">
    <div align="center">
     <table  class="poptab" align="center">
                <tr >
                    <td class="title">
                        <div id="title">
                            <strong>调研结果查询 </strong></div>
                    </td>
                </tr>
            <tr>
            <td>
            <table >
           
            <tr style="height:10px"></tr>
            </table>
            </td>
            
            </tr>
            
             <asp:GridView ID="datalist"  CssClass="opertab" runat="server" AllowPaging="True"  EmptyDataText="您所查询的信息不存在"
                    PageSize="50" Width="90%" border="0" CellPadding="3" CellSpacing="1" AutoGenerateColumns="False" 
                     OnPageIndexChanging="datalist_PageIndexChanging" >
                    <HeaderStyle CssClass="title" />
                    <AlternatingRowStyle CssClass="dg_alternating" />
                    <RowStyle CssClass="dg_item" />
                    <Columns>
                       <asp:BoundField DataField="CAM_NAME" HeaderText="活动名称" SortExpression ="CAM_NAME">
                           <ControlStyle Width="27%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="27%" />
                       </asp:BoundField>
                       <asp:BoundField DataField="WHSL" HeaderText="DYB外呼数量" SortExpression ="WHSL">
                           <ControlStyle Width="14%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="14%" />
                       </asp:BoundField>
                       <asp:BoundField DataField="CGWH" HeaderText="成功外呼" SortExpression ="CGWH">
                           <ControlStyle Width="10%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="10%" />
                       </asp:BoundField>
                       <asp:BoundField DataField="GCRS" HeaderText="购车人数" SortExpression ="GCRS">
                           <ControlStyle Width="10%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="10%" />
                       </asp:BoundField>
                       <asp:BoundField DataField="GMADRS" HeaderText="购买奥迪人数" SortExpression ="GMADRS">
                           <ControlStyle Width="14%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="14%" />
                       </asp:BoundField>
                       <asp:BoundField DataField="HOT" HeaderText="新产生销售线索" SortExpression ="HOT">
                           <ControlStyle Width="15%" />
                           <HeaderStyle ForeColor="White" />
                           <ItemStyle Width="15%" />
                       </asp:BoundField>
                     

                     <asp:TemplateField >                    
                    <ItemTemplate>
                    <table width="80%" border="0"  align="center" cellpadding="0" cellspacing="0">
                    <tr>
                    <td>        
                    <a href="CustomersCall.aspx?camuid=<%#DataBinder.Eval(Container.DataItem, "CAM_UID")%>" ><img src="/pub/crm/images/se.gif" alt="查看" /></a>
                    </td>
                    </tr>
                    </table>
                    </ItemTemplate>
                    <HeaderTemplate>
                      <span style="color: #ffffff">操作 </span>
                    </HeaderTemplate>
                         <ItemStyle Width="10%" />
                    </asp:TemplateField>
                    </Columns>
                     <PagerTemplate>
                        <table width="100%">
                            <tr>
                                <td style="text-align: right">
                                    共<asp:Label ID="lbrecordcount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).Rows.Count %>' />条记录
                                    第<asp:Label ID="lblPageIndex" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />页
                                    共<asp:Label ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount  %>' />页
                                    <asp:LinkButton ID="btnFirst" runat="server" CausesValidation="False" CommandArgument="First"
                                        CommandName="Page" Text="首页" />
                                    <asp:LinkButton ID="btnPrev" runat="server" CausesValidation="False" CommandArgument="Prev"
                                        CommandName="Page" Text="上一页" />
                                    <asp:LinkButton ID="btnNext" runat="server" CausesValidation="False" CommandArgument="Next"
                                        CommandName="Page" Text="下一页" />
                                    <asp:LinkButton ID="btnLast" runat="server" CausesValidation="False" CommandArgument="Last"
                                        CommandName="Page" Text="尾页" />
                                    <asp:TextBox ID="txtNewPageIndex" runat="server" Width="20px" Text='<%# ((GridView)Container.Parent.Parent).PageIndex + 1  %>' />
                                    <asp:LinkButton ID="btnGo" runat="server" CausesValidation="False" CommandArgument="-1"
                                        CommandName="Page" Text="GO" /><!-- here set the CommandArgument of the Go Button to '-1' as the flag -->
                                </td>
                            </tr>
                        </table>
                    </PagerTemplate>
</asp:GridView>
            
            
            </table>
            </div>
    </form>
</body>
</html>
